LinkedHashMap for循环遍历 | 您所在的位置:网站首页 › java linkedhashmap遍历 › LinkedHashMap for循环遍历 |
Map futures = new LinkedHashMap(); futures.put(Line_Num, executorService.submit(api)); for (Map.Entry entry : futures.entrySet()) { String futuresKey = entry.getKey(); Future futuresValue = entry.getValue(); try { String[] resStr = futuresValue.get(); if (null != resStr) { String strKey = resStr[0]; String strResult = resStr[1]; } } } |
CopyRight 2018-2019 实验室设备网 版权所有 |